package com.ithei.edu.info.manager.service.impl;

import com.ithei.edu.info.manager.dao.StudentDao;
import com.ithei.edu.info.manager.dao.impl.StudentDaoImpl;
import com.ithei.edu.info.manager.domain.Student;
import com.ithei.edu.info.manager.service.StudentService;

import java.io.IOException;
import java.util.ArrayList;


public class StudentServiceImpl implements StudentService {
    StudentDao studentDao=new StudentDaoImpl();


    @Override
    public void addStudent() throws IOException {
        studentDao.addStudent();
    }

    @Override
    public ArrayList<Student> BufferedReaderFile() throws IOException {
        return studentDao.BufferedReaderFile();
    }

    @Override
    public void BufferedWriterFile(Student stu) throws IOException {
        studentDao.BufferedWriterFile(stu);
    }

    @Override
    public void selectAll() throws IOException {
        studentDao.selectAll();
    }

    @Override
    public void deleteStudentById() throws IOException {
        studentDao.deleteStudentById();
    }

    @Override
    public void setStudentById() throws IOException {
        studentDao.setStudentById();
    }

    @Override
    public void deleteFile(ArrayList<Student> list) throws IOException {
        studentDao.deleteFile(list);
    }
}
